package com.czn.shopdemo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.czn.shopdemo.model.Goods;
import com.czn.shopdemo.model.vo.GoodsVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @author Zenan Chen
 * @date 2023/4/3 11:04
 */
public interface GoodsService extends IService<Goods> {

    Page<Goods> getGoodsList(Integer pageNum, Integer pageSize, GoodsVO goodsVO);

    void saveGoods(Goods goods, HttpServletRequest request);

    String uploadImg(MultipartFile file) throws IOException;

    void deleteGoods(String uuid);

    Goods getGoodDetail(String uuid);

    void onLine(String uuid,String onLine);

}
